package com.axin.blog.mapper;

import com.axin.blog.api.domain.BlogCategory;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 博客分类 数据层
 *
 * @Author axin
 * @Date 2021/10/29 19:49
 */
public interface BlogCategoryMapper extends BaseMapper<BlogCategory> {

    /**
     * 根据条件分页查询分类
     *
     * @param page
     * @param blogCategory
     * @return
     */
    Page<BlogCategory> selectPageBlogCategoryList(@Param("page") Page<BlogCategory> page,
                                                  @Param("blogCategory") BlogCategory blogCategory);

    /**
     * 根据条件查询博客分类列表
     *
     * @param blogCategory
     * @return
     */
    List<BlogCategory> selectBlogCategoryList(@Param("blogCategory") BlogCategory blogCategory);
}
